package com.ylr.config.framework.controller.web;

import java.util.Map;

import com.ylr.config.framework.entity.MappingRecordEntity;
import com.ylr.config.framework.service.MappingRecordService;
import com.ylr.base.common.tool.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;



/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-05-02 19:14:43
 * className: MappingRecordController
 * version: 1.0
 * description:
 */
@RestController
@RequestMapping("/web/mapping-record")
public class MappingRecordWebController {

    private static final Logger log = LoggerFactory.getLogger(MappingRecordWebController.class);

    @Resource(name = "mappingRecordService")
    private MappingRecordService mappingRecordService;

    /**
     * 保存
     */
    @RequestMapping("/save")
    public Result<Object> save(@RequestBody MappingRecordEntity mappingRecord) {
//        mappingRecordService.save(mappingRecord);

        return Result.success();
    }

    /**
     * 列表
     */
    @RequestMapping("/list")
    public Result<Object> list(@RequestParam Map<String, Object> params) {
//        PageUtils page = mappingRecordService.queryPage(params);

        return Result.success();
    }


    /**
     * 信息
     */
    @RequestMapping("/info/{id}")
    public Result<Object> info(@PathVariable("id") Long id){
//		MappingRecordEntity mappingRecord = mappingRecordService.getById(id);

        return Result.success();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public Result<Object> update(@RequestBody MappingRecordEntity mappingRecord){
//		mappingRecordService.updateById(mappingRecord);

        return Result.success();
    }

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public Result<Object> delete(@RequestBody Long[] ids){
//		mappingRecordService.removeByIds(Arrays.asList(ids));

        return Result.success();
    }

}
